<% content_for :css do %>
  <%= stylesheet_link_tag 'valleyer/show_log_or_reship' %>
<% end %>
<div class="title">
  <div class="picture">
    <%= valleyer_logo_image_tag @valleyer, {:width => 60, :height => 60} %>
  </div>
  <div class="name"><%= @valleyer.nick_name %></div>
  <div id="status" class="status">
    <%= render :file => "valleyers/show/homes/show/moods/show.js" %>
  </div>
  <div id="sstab">
    <div><div class="nav_bar">
        <%= link_to "主页",
          valleyer_url(@valleyer, :cmd => :home_tags_index),
          :class => "button_l" %>
        <%= link_to "个人资料",
          valleyer_url(@valleyer, :cmd => :personal_infos_index),
          :class => "button_l" %>
        <%= link_to "日志管理",
          valleyer_url(@valleyer, :cmd => :logs_index),
          :class => "button_l" %>
        <%= link_to "相册管理",
          valleyer_url(@valleyer, :cmd => :albums_index),
          :class => "button_l" %>
        <%= link_to "转载管理",
          valleyer_url(@valleyer, :cmd => :reships_index),
          :class => "button_h" %>
      </div></div>
  </div>
</div>
<div class="left">
  <div class="operate">
    <%= link_to "<<返回列表", valleyer_url(:cmd => :logs_index) %>
    <p>|</p>
    <% if @last_reship.nil? %>
      <p>上一篇</p>
    <% else %>
      <%= link_to "上一篇",
        show_reship_url(@last_reship)
    %>
    <% end %>
    <% if @last_reship.nil? %>
      <p>下一篇</p>
    <% else %>
      <%= link_to "下一篇",
        show_reship_url(@last_reship)
    %>
    <% end %>
    <% if loggined_by? @valleyer %>
      <%= link_to "编辑",
        valleyer_url(@valleyer, :cmd => :edit_reship),
        :class => :compile
    %>
      <p>|</p>
      <%= link_to "删除",
        valleyer_url(@valleyer, :cmd => :delete_reship),
        :confirm => "确认删除?"
    %>
    <% end %>
  </div>
  <div id="log_content" class="log_content">
    <%= render :file => "show_reships/show.js" %>
  </div>
</div>
<div class="right">
  <div class="add">
    <div class="title"><p>转载</p></div>
    <div class="works">
      <div class="log">
        <%= link_to image_tag("valleyer/add_reship.jpg"),
          valleyer_url(:cmd => :new_reship)
      %>
      </div>
    </div>
  </div>
  <div class="other_logs">
    <%= render :file => "show_reships/index.js" %>
  </div>
</div>
